XendDomain.py:
Handle error case where exec fails.
xpopen.py:
Exit with 127 if exec fails.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
try:
os.execvp(cmd[0], cmd)
finally:
- os._exit(1)
+ os._exit(127)
def poll(self):
"""Return the exit status of the child process if it has finished,
if filter(lambda (fd, event): event & select.POLLHUP, r):
break
+ if child.wait() >> 8 == 127:
+ lasterr = "popen %s failed" % PATH_XC_RESTORE
if child.wait() != 0:
raise XendError("xc_restore failed: %s" % lasterr)